();}/*************** Select the first two levels of **********************/from all permissions$btns = Array (); Top Level Two permissionsforeach ($priData as $k = $v){if ($v [' parent_id '] = = 0){and find the child of this top.foreach ($priData as $k 1 = $v 1){if ($v 1[' parent_id ') = = $v [' id ']){$v [' Children '] [] = $v 1;}}$btns [] = $v;}}return $btns;}$priModel = D (' privilege ');$btns = $priModel->getbtns ();foreach ($btns as $k = $v):?>Check whether the
PS: English name process, the meaning of progress.1. Command format:ps[选项]2. Frequently used options:"ps -a" 显示一个终端的全部进程。除了会话引线"ps -e" 显示全部进程"ps -f" 全部列出,通常和其它选项联用"ps -u" 选择有效的用户id或者是username"ps -x" 显示没有控制终端的进程。同一时候显示各个命令的详细路径最经常使用的组合:"ps -aux" 显示全部包括其它使用者的进程3. Frequently used examples查看名为tail的本机进程,并关闭该进程Note: PS has a very good number of references. The online case is also very rich, and this article only lists the "Find and kill process" cases that have been used frequently in normal
The example of this article tells JS implementation to display the current state of the navigation effect code. Share to everyone for your reference. Specifically as follows:
This shows the current state of navigation, the mouse click on the left-hand side of the navigation menu, the right side of the content will be transformed, is actually a vertical tab tab,
longitude data obtained by the serial port, if the location signal is not good, the return data can be #能全部为零, this situation will lead to longer positioning period if_dataread!=None:Print('raw data =', _dataread)Print('raw Data length:', Len (_dataread))if60#This is where the correct data length is used as the beginning of the processing_dataread = _dataread.decode ('Utf-8') _dataread1=_dataread.split (',')#Turn the data into ' utf-8 ' format and divide the data into "," #隔开 Prin
1 Go to your home directoryCD ~2 Edit. bashrc fileVI. BASHRC3 Add the following code to the end of the filefunction git_branch { Branch= "' Git branch 2>/dev/null | grep" ^\* "| sed-e" s/^\*\//"'" if ["${bra NCH} "! =" " ];thenif [" ${branch} "=" (No branch) " ];then Branch=" (' Git rev-parse--s Hort HEAD ' ...) ' fi "($branch)" fi}export PS1= ' \[email protected]\h \[\033[01;36m\]\w\[\033[ 01;32m\]$ (git_branch) \[\033[00m\] \$ '4 Save Exit5 Executing the load comman
/* *function: Displays a time equivalent to how many seconds before the current time, how many minutes ago, how many hours ago *timeint:unix time timestamp *format: Time display format */ Public Function TimeFormat ($timeInt, $format = ' y-m-d h:i:s ') {if (empty ($timeInt) | |! Is_numeric ($timeInt) | |! $TIMEINT) {return '; } $d =time ()-$timeInt; if ($d PHP s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.